package com.rd.student.jike.class2.lihongming.week724_730.S728;

import java.util.Collections;
import java.util.LinkedList;
import java.util.Scanner;

/**
 * @Auther:Heinrich
 * @Date:2023/7/28-07-28-16:18
 * @Description:c230728.NameRandom
 * @version:1.0
 */
public class Module1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] name = {"郑成祥","王博","孙文卓","郑睿娴","王高博","李春泉",
        "张睿","王星凯","柏云耀","高艺铭", "周子贺","杜航","高晨曦","张思韬","孙昊","方周","郭佳宝",
    "姜万里","李宏鸣","薛志鑫","王海鑫","夏银银","吴俊豪","王向阳","徐铭泽",
        "张世煊","才雨鑫","孙国伟","秦嘉林","王岩博","石睿","杜雨坤",
        "黄奕鸣","金洪宇","李鑫","王宇芳","苏岩"
        };
        String[] names = randomName(name,scanner.nextInt());
        for (int i = 0; i < names.length; i++) {
            System.out.println(names[i]);
        }
    }

    public static String[] randomName(String[] name,int n ){
        String[] names = new String[n];
        LinkedList list = new LinkedList();
        for (int i = 0; i < name.length; i++) {
            list.add(name[i]);
        }
        Collections.shuffle(list);
        for (int i = 0; i < n; i++) {
            names[i] = (String) list.get(i);
        }
        return names;
    }
}
